package ru.agiledev.akb.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Created by a.kirillov
 * Date: 3/28/11 Time: 10:30 PM
 */
public class TransferObject implements IsSerializable {
    public Integer id;
    public String question;
    public QType questionType;

    public String[] iObjects;
    public String[] aspects;
    public String[] examples;

    private User user;

    public TransferObject(){

    };

    public TransferObject(Integer id) {
        this.id = id;
    }

    public TransferObject(Integer id, String question, QType questionType, String[] iObjects, String[] aspects, String[] examples, User user) {
        this.id = id;
        this.question = question;
        this.questionType = questionType;
        this.iObjects = iObjects;
        this.aspects = aspects;
        this.examples = examples;
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public QType getQuestionType() {
        return questionType;
    }

    public void setQuestionType(QType questionType) {
        this.questionType = questionType;
    }

    public String[] getiObjects() {
        return iObjects;
    }

    public void setiObjects(String[] iObjects) {
        this.iObjects = iObjects;
    }

    public String[] getAspects() {
        return aspects;
    }

    public void setAspects(String[] aspects) {
        this.aspects = aspects;
    }

    public String[] getExamples() {
        return examples;
    }

    public void setExamples(String[] examples) {
        this.examples = examples;
    }
}
